<#include "/view/common/command/para.html">
<div class="zs-ibox" id="modification">
	<table class="zs-form-tab" width="100%" >
		<tbody>
		<tr>
	             <td style="width: 7%">站点:</td>
	             <td style="width: 50%;colspan: 2"> 
	                <ul  class="zs-data-sizer" id="wsclcname" style="float:left">
						<com-selecter  style="float:left"  ng-model="stationID" data='stationNameCommonData' ng-change="queryModifyDataStatus"></com-selecter>
		             </ul>
	             </td>
	             
			</tr>
			<tr>
				<td style="width:7%">
					凭证上传状态:
				 </td>
				 <td style="text-align: left">
					<com-selecter  style="float:left"  ng-model="uploadStatus" data='uploadStatusCommonData' ng-change="queryModifyDataStatus"></com-selecter>
				</td>
			</tr>				
			<tr>
				<td style="width:7%">
					数据类型:
				</td>
				<td style="width:20%;text-align: left">
					<com-selecter  style="float:left"  ng-model="dataSource" data='dataSourceSelect'></com-selecter>
				</td>
				<td ng-show="dataSource=='3' || dataSource=='6'" style="width:30%">
					<label>日期:</label> &nbsp; 
					<ag-Datebox class="zs-input" ng-model="hourDate"></ag-Datebox> 
				</td>
				<td ng-show="dataSource=='4'" style="width:30%">
					<div>
						<label style="float:left;margin-right: 10px">日期:</label>
						<div style="float:left;margin-right: 10px"><ag-Combobox style="width:120px" dynamic="false" ng-model="dayYear" data='yearList' /></div>
				    	<div style="float:left;margin-right: 10px"><ag-Combobox style="width:120px" dynamic="false" ng-model="dayMonth" data='monthlist' /></div>
					</div>
				</td>
				<td style="width:40%;text-align: left">
					<input type="button" value="查询" class="zs-btn" ng-click="queryModifyDataStatus()">
				</td>
			</tr>
		</tbody>
	</table>
	
		<div style="overflow: auto; height: {{Map_H- 300">
		<table class="zs-data-tab" width="100%">
			<thead>
					<tr>
						<th class="head">所属站点</th>
						<th class="head">凭证名称</th>
						<th class="head">数据时间</th>
						<th class="head">修约时间</th>
						<th class="head">修约人</th>
						<th class="head">凭证上传状态</th>
						<th class="head">操作</th>
					</tr>
			</thead>
			<tbody>
				<tr ng-repeat="curRow in httpData.ModifyDataCerfityStatusList.data"
					class="{{ isDoubleNum($index) ? 'even':'' }}">
					<td class="center"><label ng-bind="curRow.NAME"></label></td>
					<td class="center"><label ng-bind="curRow.CERTIFICATE_NAME"></label></td>
					<td class="center"><label ng-bind="curRow.DATATIME"></label></td>
					<td class="center"><label ng-bind="curRow.MODIFY_DATE"></label></td>
					<td class="center"><label ng-bind="curRow.MODIFY_USER_ID=='-1'?'超级管理员':curRow.MODIFY_USER_NAME"></label></td>
					<td class="center"><label ng-bind="curRow.GUID!=null?'已上传':'未上传'"></label></td>
					<td class="center">
						<a ng-show="curRow.GUID!=null" ng-click="viewCertificate(curRow.GUID)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;查看</a>
						<a ng-show="curRow.GUID==null" ng-click="addCertificate(curRow)">上传凭证</a>&nbsp;
						<a ng-show="curRow.GUID!=null" ng-click="viewOrEditCertificate(curRow)">修改</a>&nbsp;
					</td>
				</tr>
			</tbody>
		</table>
		<div class="zs-page">
			<a
				ng-click="waterDataCommon.firstPage(httpData.ModifyDataCerfityStatusList,httpData.ModifyDataCerfityStatusList.queryObj)">首页</a>
			<a class="pre"
				ng-click="waterDataCommon.prePage(httpData.ModifyDataCerfityStatusList,httpData.ModifyDataCerfityStatusList.queryObj)">上一页</a>
			<a class="next"
				ng-click="waterDataCommon.nextPage(httpData.ModifyDataCerfityStatusList,httpData.ModifyDataCerfityStatusList.queryObj)">下一页</a>
			<a
				ng-click="waterDataCommon.lastPage(httpData.ModifyDataCerfityStatusList,httpData.ModifyDataCerfityStatusList.queryObj)">尾页</a>
			共<strong><label
				ng-bind="httpData.ModifyDataCerfityStatusList.pageInfo.rowCount"></label></strong>条数据 - 第<strong><label
				ng-bind="httpData.ModifyDataCerfityStatusList.pageInfo.pageIndex"></label></strong>页 - 共<strong><label
				ng-bind="httpData.ModifyDataCerfityStatusList.pageInfo.pageCount"></label></strong>页
		</div>
	</div>
    
    <div itfreer-Window id="modifyData" title="修约" width='800' height='450'><#include "${viewDir}/common/DataModification/modify.html"></div>
    
    <div itfreer-Window id="AddCertificate" title="新增凭证" width='800' 
		height='450'><#include "${viewDir}/WasteGas/dataModification/addCertificate.html">
	</div>	
	<div itfreer-Window id="CertificateDetail" title="凭证详情" width='800' 
	height='450'><#include "${viewDir}/WasteGas/dataModification/CertificateDetail.html">
	</div>
</div>

